<script setup>

</script>

<template>
    <header class="app-topnav">
        <div class="container">
            <img src="../../static/logo.png" alt="" style="width: 110px;height: 60px">
            <ul>
                <NuxtLink to="/" exactActiveClass="active">
                    <li>
                        首页
                    </li>
                </NuxtLink>
                <NuxtLink to="/tools" exactActiveClass="active">
                    <li>
                        工具
                    </li>
                </NuxtLink>
            </ul>
        </div>
    </header>

</template>

<style scoped>
.app-topnav {
    width: 100%;
    height: 60px;
    /* border-bottom: 1px solid #bbbbbb; */
    box-shadow: 0 1px #bbbbbb;
}

.container {
    width: 100%;
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
}

ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-left: 50px;
}

li {
    width: 100px;
    text-align: center;
    height: 40px;
    line-height: 40px;
    font-weight: bold;
    font-size: 18px;
    font-family: PingFang SC, PingFang SC;
    font-weight: 600;
    /* color: #1F1F1F; */
    text-align: left;
    font-style: normal;
    text-transform: none;
    text-align: center;
}

a:hover {
    /* background-color: rgba(39, 186, 155, 0.7); */
    /* border-bottom: 1px solid rgba(39, 186, 155, 0.7); */
    cursor: pointer;
    color: #655aec;
}

a {
    color: #333;
    text-decoration: none;
}

.active {
    /* background-color: rgba(39, 186, 155, 0.7); */
    /* border-bottom: 2px solid rgba(39, 186, 155, 0.7); */
    color: #655aec;
    background: #F4F4F5;
    border-radius: 6px;
    cursor: pointer;
    /* color: #fff; */
}

a {
    position: relative;
}

/* a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #655aec;
    transform-origin: bottom right;
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

a:hover::before {
    transform-origin: bottom left;
    transform: scaleX(1);
} */

@media (max-width: 992px) {
    ul {
        justify-content: center;
    }
}
</style>